/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.services.finance;

/**
 *
 * @author jay
 */

import java.util.List;
import java.util.Map;
import javax.faces.model.SelectItem;
import src.domain.finance.Bvtype;
import src.services.CRUEDService;

public class BvtypeModel implements java.io.Serializable {
    
    private CRUEDService service;
    
    public BvtypeModel() {
        service = new CRUEDService();
    }
    
    public List<Bvtype> findAll(Map<String, String> filters) {
        return (List<Bvtype>) service.findAll("Bvtype", filters);
    }

    public List<SelectItem> listAll() {
        return service.listAll("Bvtype", "bvtypeId", "typeName");
    }
    
    public boolean saveData(Bvtype data) {
        return service.saveData(data);
    }
    
    public boolean deleteData(Bvtype data) {
        return service.deleteData(data);
    }
}
